package com.feign;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;

/**
 * @ClassName: EurekaFeignClient
 * @Author: ZhangYue26
 * @Description:
 * @Date: 2021-01-12
 */
@EnableEurekaClient
@EnableFeignClients
@EnableHystrix//开启熔断器
@EnableHystrixDashboard //开启熔断器监视器 Feign中与在Ribbon使用熔断器监视器的方法时相同的，加注解与三个必要依赖即可 TODO 访问：http://localhost:8770/hystrix
@SpringBootApplication
public class EurekaFeignClientApplication {
    public static void main(String[] args) {
        SpringApplication.run(EurekaFeignClientApplication.class, args);
    }
}
